package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysUserGoogle;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 谷歌密钥Mapper接口
 *
 * @author Ericcc
 * @date 2021-03-18
 */
public interface SysUserGoogleMapper
{
    /**
     * 查询谷歌密钥
     *
     * @param googleId 谷歌密钥ID
     * @return 谷歌密钥
     */
    public SysUserGoogle selectSysUserGoogleById(Long googleId);

    /**
     * 查询谷歌密钥列表
     *
     * @param sysUserGoogle 谷歌密钥
     * @return 谷歌密钥集合
     */
    public List<SysUserGoogle> selectSysUserGoogleList(SysUserGoogle sysUserGoogle);

    /**
     * 新增谷歌密钥
     *
     * @param sysUserGoogle 谷歌密钥
     * @return 结果
     */
    public int insertSysUserGoogle(SysUserGoogle sysUserGoogle);

    /**
     * 修改谷歌密钥
     *
     * @param sysUserGoogle 谷歌密钥
     * @return 结果
     */
    public int updateSysUserGoogle(SysUserGoogle sysUserGoogle);

    /**
     * 删除谷歌密钥
     *
     * @param googleId 谷歌密钥ID
     * @return 结果
     */
    public int deleteSysUserGoogleById(Long googleId);

    /**
     * 批量删除谷歌密钥
     *
     * @param googleIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysUserGoogleByIds(String[] googleIds);

    /**
     * 查询谷歌密钥
     *
     * @param userId 用户ID
     * @return 谷歌密钥
     */
    public SysUserGoogle selectSysUserGoogleByUserId(@Param("userId") Long userId);
}
